#include "swpresourcegraphicitem.h"

#include "graphicitemcommon.h"

using namespace core;
using namespace swp;

SwpResourceGraphicItem::SwpResourceGraphicItem(const QString& resourceName,
    QGraphicsItem* parent) : SwpEntityGraphicItem(
        resourceName.isEmpty() ? QObject::tr("resource") :
            resourceName, QObject::tr("resource"), parent)
{

}

SwpResourceGraphicItem::~SwpResourceGraphicItem()
{

}

int SwpResourceGraphicItem::type() const
{
    return SWP_RESOURCE_ITEM;
}

QString SwpResourceGraphicItem::name() const
{
    return QObject::tr("Resource");
}

IEditorItem* SwpResourceGraphicItem::copy() const
{
    return new SwpResourceGraphicItem(m_entityName, 0);
}

